package com.tyrianoid;

/* This class implements the Singleton pattern */

public class GameOptions {

	private static GameOptions instance;
	
	private boolean accelerometer;
	private boolean autoshoot;

	private GameOptions() 
	{
		accelerometer = false;
		autoshoot = false;
	}
	
	public static GameOptions getInstance() 
	{
		if (instance == null)
		{
			instance = new GameOptions();
		}
		
		return instance;
	}
	
	public boolean isAccelerometer() {
		return accelerometer;
	}

	public void setAccelerometer(boolean accelerometer) {
		this.accelerometer = accelerometer;
	}
	
	public boolean isAutoshoot() {
		return autoshoot;
	}

	public void setAutoshoot(boolean autoshoot) {
		this.autoshoot = autoshoot;
	}
	
}
